Skip to content

Conversation

@scott-huberty
Copy link
Collaborator

In our contributing guide we say that one can do make html-noplot to build the documentation without executing the example gallery, but the html-noplot recipe doesn't actually exist!

I've also put a lower pin on sphinx-gallery, and will elaborate on that in a comment.

And we also tweak `make view` so that the built documentation opens regardless of whether it was built with make html or make html-noplot
in MNE-BIDS doc/conf.py we have:

```
sphinx_gallery_conf["within_subsection_order"] = "mne_bids.utils._example_sorter"
```

But AFAICT this functionality wasn't workign prior to sphinx-gallery/sphinx-gallery#1391 , which was included in the release of sphinx-agallery v0.19 (released Feb 12 2025).

https://sphinx-gallery.github.io/stable/changes.html#v0-19-0

Given that v0.19 was released less than 1 year ago, I think it is reasonable to assume that devs/contributors might have a sphinx-gallery version < 0.19 installed locally, in which case building the mne-bids docuemntation will fail, but the reason/solution won't be explicit.

So I think that it is best to be explicit about the minimum required sphinx-gallery version we require to be able to successfully build our docs.
@codecov
Copy link

codecov bot commented Nov 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.92%. Comparing base (9c550e1) to head (5633a38).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1468      +/-   ##
==========================================
+ Coverage   96.90%   96.92%   +0.01%     
==========================================
  Files          43       43              
  Lines       10003    10003              
==========================================
+ Hits         9693     9695       +2     
+ Misses        310      308       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@agramfort
Copy link
Member

FYI it was initially copied from https://github.com/scikit-learn/scikit-learn/blob/main/doc/Makefile#L33

Copy link
Member

@sappelhoff sappelhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sappelhoff sappelhoff merged commit 51126eb into mne-tools:main Nov 4, 2025
24 checks passed
@scott-huberty scott-huberty deleted the noplot branch November 4, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants